package ge.modules.events;

import ge.lowlevel.EventEngine;
import ge.modules.Module;

public class ButtonListener implements Module 
{
	public ButtonListener()
	{
		
	}
	/**
	 * @return True if the button is now pressed
	 */
	public boolean buttonPressed(int buttonId)
	{
		ButtonEvent but = (ButtonEvent)EventEngine.get().ask("buttonPressed",buttonId);
		if(but != null)
			return but.buttonPressed();
		return false;
	}
	@Override
	public void update() {
		 
		
	}

	@Override
	public void draw() {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void delete() {
		// TODO Auto-generated method stub
		
	}
	
	
}
